package com.sskj.gcc.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.gcc.bean.SummaryBean;
import com.sskj.gcc.http.HttpConfig;
import com.sskj.gcc.ui.fragment.KePuFragment;
import com.sskj.lib.http.JsonCallBack;


public class KePuFragmentPresenter extends BasePresenter<KePuFragment> {

    public void getKePu() {
        httpService.getKePu()
                .tag(this)
                .execute(new JsonCallBack<HttpData<String>>() {
                    @Override
                    public void onSuccess(Response<HttpData<String>> response) {
                        HttpData<String> httpData = response.body();
                        if (httpData.getCode() == HttpConfig.OK) {
                            mView.updateUI(httpData.getData());
                        }
                    }
                });
    }
}
